import React, { Component } from 'react'
import { Result, Button } from 'antd';
export default class paySuccess extends Component {
    constructor(props){
        super(props)

    }
    jumpRouter(router){
        this.props.history.push(router)
    }
    render() {
        return (        
                <Result
                    status="success"
                    title="恭喜您，支付成功！"
                    subTitle="Order number: 1173897113@qq.com 
                    If you have any questions, please contact me and we will answer them as soon as possible."
                    extra={[
                    <Button type="primary" key="console" onClick={this.jumpRouter.bind(this,"/index")}>
                        返回首页
                    </Button>,
                    <Button key="buy" onClick={this.jumpRouter.bind(this,"/myself")}>返回个人中心</Button>,
                    ]}
                />
        )
    }
}
